package com.example.SpringBoot_demo.mapper;

import com.example.SpringBoot_demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> viewUser();
    List<User> viewAdmin();
    void deleteUser(String userid);
    void addUser(User user);
    void updateUser(User user);
    User getUserById(String userid);
    List<User> getUser(String userid, String username);

}
